package com.runrun.com.runrun.sqlsession;

import com.runrun.pojo.Configuration;
import com.runrun.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface Executor {
    public <E> List<E> Query(Configuration configuration, MappedStatement mappedStatement, Object... parms) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InstantiationException, IntrospectionException, InvocationTargetException;

    public Integer insert(Configuration configuration, MappedStatement mappedStatement, Object... parms) throws SQLException, Exception;

    public Integer update(Configuration configuration, MappedStatement mappedStatement, Object... parms) throws SQLException, Exception;

    public Integer delete(Configuration configuration, MappedStatement mappedStatement, Object... parms) throws SQLException, Exception;
}
